package com.school.admin.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.school.admin.entity.MallSysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.school.admin.entity.vo.MallSysUserVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author sunpx
 * @since 2022-03-24
 */
public interface MallSysUserMapper extends BaseMapper<MallSysUser> {


    /**
     * 分页查询
     * @author : sunpx
     * @param page
     * @param user
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.school.admin.entity.vo.MallSysUserVo>
     * @date : 2022-03-25 23:03:53
     */
    IPage<MallSysUserVo> queryPage(Page page, @Param("user") MallSysUser user);


    /**
     * 用户详情
     * @author : sunpx
     * @param id
     * @return com.school.admin.entity.vo.MallSysUserVo
     * @date : 2022-03-25 23:04:03
     */
    MallSysUserVo getUserInfo(@Param("id") String id);


}
